//
//  M4IDCardInfoConfrimView.swift
//  M4
//
//  Created by YuChuang on 2024/8/14.
//

import UIKit

class M4IDCardInfoConfrimView: UIView {
    
    @IBOutlet weak var M4IDCardInfoBGView: UIView!
    
    @IBOutlet weak var M4IDCardInfoNombre: UILabel!
    
    @IBOutlet weak var M4IDCardInfoPaterno: UILabel!
    
    @IBOutlet weak var M4IDCardInfoMaterno: UILabel!
    
    @IBOutlet weak var M4IDCardInfoCURP: UILabel!
    @IBOutlet weak var M4DecirptionView: M4DecriptionStringView!
    
    var M4ConfirmBlock: (() -> Void)?
    
    override func awakeFromNib() {
        self.frame = CGRect(x: 0, y: 0, width: M4ScreenWidth, height: M4ScreenHeight)
    }
    
    func M4IDCardUpdateUI(name: String, faname: String, maname: String, idnumber: String) {
        M4IDCardInfoNombre.text = name
        M4IDCardInfoPaterno.text = faname
        M4IDCardInfoMaterno.text = maname
        M4IDCardInfoCURP.text = idnumber
    }
    
    @IBAction func M4IDCardInfoConfirmClick(_ sender: UIButton) {
        M4ConfirmBlock?()
        M4AlertViewHidden()
        sender.M4EventUnavailable = false
    }
    
    @IBAction func M4IDCardInfoModifyClick(_ sender: UIButton) {
        M4AlertViewHidden()
        sender.M4EventUnavailable = false
    }
    
    
}
